<template>
	<view>
		<uni-section :title="dataInfo.title" type="line"></uni-section>
		<view class="p15">
			<view v-html="dataInfo.content"></view>
		</view>
	</view>
</template>

<script>
import func from '../../../api/func'
import request from '../../../api/request'

	export default {
		data() {
			return {
				id:0,
				dataInfo:{}
			}
		},
		onLoad(option) {
			this.id = option.id
			this.onGetData()
		},
		methods: {
			onGetData(){
				let _this = this
				request('disclosure/'+this.id,'GET').then(res => {
					if(res.code != 200){
						uni.showToast({title: res.msg,icon: 'error',duration: 2000})
						return;
					}
					_this.dataInfo = res.data
					_this.dataInfo.content = func.onImgStyle(_this.dataInfo.content);
				}).catch(err => {
					console.log(err)
				})
			},
		}
	}
</script>

<style>

</style>
